package com.be.beadmin.project.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 11:48 2023/2/13
 * @Modified By:
 **/
@Entity
@Getter
@Setter
@Table(name="T_PM_ProductTotalInfo")
public class ProductTotalInfo extends BaseEntity {


    @Column(name = "InfoId",columnDefinition = "VARCHAR(50) COMMENT '项目id' not null")
    private String infoId;

    @Column(name = "projectName",columnDefinition = "VARCHAR(50) COMMENT '项目名称' ")
    private String projectName;

    @Column(name = "UnstandardName",columnDefinition = "VARCHAR(50) COMMENT '非标柜体名称' ")
    private String unstandardName;

    @Column(name = "ProductQty",columnDefinition = "int COMMENT '柜体数量' ")
    private Integer productQty;

    @Column(name = "ProductType",columnDefinition = "VARCHAR(50) COMMENT '柜体类型' ")
    private String productType;

    @Column(
            name = "IsPublished",
            nullable = true,
            columnDefinition = "decimal(1) default 1 COMMENT '是否发布' "
    )
    protected Integer isPublished = 0;
//    @Column(name = "ProductQty",columnDefinition = "int COMMENT '剩余数量' ")
//    private Integer productQty;

    @Column(
            name = "IsStandard",
            nullable = false,
            columnDefinition = "decimal(1) default 1 COMMENT '标准柜体' "
    )
    protected Integer isStandard = 1;

    @Column(name = "Memo",columnDefinition = "VARCHAR(50) COMMENT '备注'")
    private String memo;


}
